Skip to content

Conversation

@nkomonen-amazon
Copy link
Contributor

@nkomonen-amazon nkomonen-amazon commented Oct 22, 2024

Problem:

Every time I did a development build the package.json would change.

Background: New fonts are added for Amazon Q by adding the SVG to packages/core/resources/icons. Then the generateIcons.ts script will read this and add the icon to our custom font that we generate. Another part of this script also updates the package.json with this new icon.

The problem is that the package.json change was only reflected in the Amazon Q package.json and not the Toolkit package.json. This needs to be reflected in the Toolkit package.json as well since we only generate a single font for both extensions, instead of a customized font for each.

Solution:

Run the generate icon script for Toolkit and commit the package.json changes.


License: I confirm that my contribution is made under the terms of the Apache 2.0 license.

Problem:

A new font was added for Amazon Q by adding the SVG to `packages/core/resources/icons`.
Then the `generateIcons.ts` script will read this and add the icon to our custom font that we generate.
Another part of this script also updates the package.json with this new icon.

The problem is that the package.json change was only reflected in the Amazon Q package.json
and not the Toolkit package.json. This needs to be reflected in the Toolkit package.json as well
since we only generate a single font for both extensions, instead of a customized font for each.

So every time I did a development build the package.json would change.

Solution:

Run the generate icon script for Toolkit and commit the package.json changes.

Signed-off-by: nkomonen-amazon <[email protected]>
@nkomonen-amazon nkomonen-amazon requested a review from a team as a code owner October 22, 2024 20:56
@github-actions
Copy link

This pull request implements a feature or fix, so it must include a changelog entry. See CONTRIBUTING.md#changelog for instructions.

@nkomonen-amazon nkomonen-amazon changed the title fix(packageJson): Sync fonts to Toolkit fix(packagejson): Sync fonts to Toolkit Oct 22, 2024
@nkomonen-amazon nkomonen-amazon changed the title fix(packagejson): Sync fonts to Toolkit dev(build): Sync fonts to Toolkit Oct 22, 2024
@nkomonen-amazon nkomonen-amazon changed the title dev(build): Sync fonts to Toolkit test(build): Sync fonts to Toolkit Oct 22, 2024
@nkomonen-amazon nkomonen-amazon merged commit 5fddd1e into aws:master Oct 22, 2024
39 of 52 checks passed
@nkomonen-amazon nkomonen-amazon deleted the updatePackageJson branch October 22, 2024 22:42
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants